<template>
    <div class="jianzhuForm">
        <div class="radioList">
            <div class="top10" style="margin-top: 0">
                <label class="leftTitle">初始化条件：</label>
            </div>
            <div class="top10">
                <el-radio v-model="cj" label="1">最近一次采集数据</el-radio>
                <el-radio v-model="cj" label="2">自定义时间</el-radio>
                <el-date-picker v-model="time" type="date" placeholder="选择日期" style="width: 160px; margin-right: 10px">
                </el-date-picker>
            </div>
            <div class="top10">
                <label class="leftTitle">初始化原因：</label>
                <el-input type="textarea" v-model="reason" style="width: 596px; margin: 0; padding: 0"></el-input>
            </div>
        </div>
        <div style="text-align: right; margin-top: 10px">
            <el-button type="primary" @click="cancel">确认初始化</el-button>
            <el-button @click="cancel">取消</el-button>
        </div>
    </div>
</template>

<script>
import {xhczList} from '@/mockData/systemManage.js'
export default {
    components: {},
    // props: ["formData"],
    data() {
        return {
            // table 相关参数  begin
            dataSource: xhczList,
            currentRow: {},
            checked: true,
            reason: '',
            time: '',
            cj: '1'
        }
    },
    computed: {},
    created() {},
    mounted() {
        this.$nextTick(() => {})
    },
    methods: {
        handleCurrentChange(val) {
            console.log(val, 'val....')
            this.currentRow = val
        },
        cancel() {
            this.$emit('close', '')
        }
    }
}
</script>

<style lang="scss" scoped>
.jianzhuForm {
    position: relative;
    top: -15px;
    .radioList {
        .name {
            font-weight: bold;
            font-size: 14px;
        }
        .top10 {
            margin-top: 10px;
            line-height: 32px;
            .leftTitle {
                text-align: right;
                width: 90px;
            }
        }
    }
    .title {
        text-align: center;
        font-size: 18px;
        color: #000;
        padding-bottom: 10px;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 10px;
    }
}
</style>
